package com.ochnas.examples.jsf.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

import com.ochnas.examples.jsf.service.RentABike;

public class BikesController implements Controller {
	
	private RentABike facade;

	@Override
	public ModelAndView handleRequest(HttpServletRequest arg0,
			HttpServletResponse arg1) throws Exception {
		
		return new ModelAndView("bikes.jsp", "rentaBike", facade);	
	}

	public RentABike getFacade() {
		return facade;
	}

	public void setFacade(RentABike facade) {
		this.facade = facade;
	}

	
}
